Hello,
the problem is then the dro looks blue and i press Zero the dro not null.
I start kmotion - press init -
init is init.c
ch0->InputMode=ENCODER_MODE;
ch0->OutputMode=STEP_DIR_MODE;
...
ch0->InputChan0=0;
ch0->InputChan1=0;
ch0->OutputChan0=8;
ch0->OutputChan1=0;
ch0->MasterAxis=-1;
ch0->LimitSwitchOptions=0x0;
ch0->InputGain0=2;
ch0->InputGain1=2;
ch0->InputOffset0=0;
ch0->InputOffset1=0;
...
EnableAxisDest(0,0);
and so on ch1 and ch2
DefineCoordSystem(0,1,2,-1);
Zero(0);
Zero(1);
Zero(2);
now the DRO is Null
now i move the axes the dro is ex. 100.0000
now i press Zero but without function
Is DRO looks green i can set to Null or what ever.
Hmm i want set Glas encoders to Null.
Or is encoder position = machine position and this cant set null?
Perhaps i do something wrong?
Gerry
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Gerry,
>
> You would need to edit compile KMotionCNC to change how the Zero button works. You could add an external button.
>
> But I don't understand why the Zero Button doesn't work. Regardless of whether you have encoders or not. The Zero button adjusts the G92 offsets so the DRO will read zero. You do not need to zero the machine coordinates to make the DRO read zero unless you have machine coordinates selected.
>
> Regards
> TK
>
>
>
> ________________________________
> From: Gernot <web.work@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, November 5, 2012 3:59 AM
> Subject: [DynoMotion] comunication KMotionCNC to Kflop
>
>
> Â
> Hello,
>
> is possible then i press Zero button in KMotionCNC c programm in kflop can reaction?
> Example: Button Zero press in KMotionCNC -> Kflop c programm
>
> for(;;)
> {
> if pressed zero then Zero(0);
> }
>
> Problem is then i pressed Zero the dro not 0.
> I have connected encoders on axes.
> Okay the problem can resolved with custom Buttons but i dont want it.
>
> Sorry for my english.
>
> Regards
>
> Gerry
>